

import  requests
import re
headers = {"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"}
url = 'https://vip.hdbz.net/auth/ajaxlogin'
session = requests.Session()
#
response = session.post(url,headers=headers,data={'username':'18303671179','userpwd':'Zzf0904'})

# print(response.text)
url_favorite = 'https://vip.hdbz.net/site/FavoriteList'
response_favorite = session.get(url_favorite)

datas = response_favorite.json()['data']
for data in datas:
    favoriteThumb =  data['favoriteThumb']
    favoriteTitle = data['favoriteTitle']
    print(favoriteThumb)
    print(favoriteTitle)

# 收藏
url_get_response =  "https://vip.hdbz.net/site/ImageStore"
session.post(url_get_response,data={"aid": "179490", "imageurl": "/wallpaper/202510/179490.html"})